package com.bjpowernode.pmes.service;

import java.util.List;

import com.bjpowernode.pmes.bean.Menu;
import com.bjpowernode.pmes.bean.Page;
import com.bjpowernode.pmes.bean.User;

public interface UserService {

	User getUserByCode(String usercode);

	int insertUser(User user);

	Page<User> getAllUsers(Integer pageno, Integer pagesize);

	User getUserById(Integer id);

	int updateUser(User user);

	int deleteUsers(List<User> userList);

	User getUserForLogin(User user);

	List<Menu> getMenus(Integer pid);

	List<Menu> getAllMenus();

	List<Menu> getRoleMenus(String role);

}
